/**
 * Created by penghao on 17/5/2.
 */
// 这里面负责写路由映射，便于管理
// 引入路由模块并使用它
import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
// 创建路由实例并配置路由映射
// path:'*',redirect:'/home'  重定向到path是/home的映射ReviewlistDetails.vue
const router = new VueRouter({
    routes:[{
        path: '/selectreview', component: require('../template/Selectreview.vue')
    },{
        path: '/addUser', component: require('../template/AddUser.vue')
    },{
        path: '/management', component: require('../template/Management.vue')
    },{
        path: '/userList', component: require('../template/UserList.vue')
    },{
        path: '/reflectedlist', component: require('../template/Reflectedlist.vue')
    },{
        path: '/reportList', component: require('../template/ReportList.vue')
    },{
        path: '/reportDetails', component: require('../template/ReportDetails.vue')
    },{
        path: '/reviewlistDetails', component: require('../template/ReviewlistDetails.vue')
    },{
        path: '/reviewlist', component: require('../template/Reviewlist.vue')
    },{
        path: '/viewdata', component: require('../template/ViewData.vue')
    },{
        path: '/home', component: require('../template/Home.vue')
    },{
        path: '/login', component: require('../template/Login.vue')
    },{
        path:'*',redirect:'/login'
    }]
})

// 输出router
export default router;